<?php
namespace restphp\exception;


class RestClientException extends \Exception {
    public function __construct($message, $body)
    {
        $GLOBALS['RESTPHP_REST_CLIENT_ERROR_BODY'] = $body;
        parent::__construct($message);
    }
}